package encaps.entities;

import java.util.Collection;
import java.util.HashMap;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

public interface PersonLocalHome extends EJBLocalHome {

    PersonLocal create(String name, String photo, String bio) throws CreateException;

    PersonLocal findByPrimaryKey(Long key) throws FinderException;

    Collection<PersonLocal> findAll();

    Collection findPaged(String name, String orderColumn, OrderType orderType, Integer from, Integer count);

    Collection<PersonLocal> findByParametersPaged(String name, String bio,
            String movieTitle, String orderColumn, OrderType orderType,
            Integer from, Integer count) throws FinderException;

    Integer getPersonsCount(String name) throws FinderException;

    Integer getPersonsCount(String name, String bio, String movieTitle) throws FinderException;

    HashMap getAll();
}
